package com.mapper;
import com.domain.User;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;
//@Repository
//@Mapper
//@Component
public interface Usermapper {

@Select("select * from user")
@Results(value = {
        //id字段默认为false，表示不是主键
        //column表示数据库表字段，property表示实体类属性名。
        @Result(id = true,column = "id",property = "id"),
        @Result(column = "name",property = "name"),
        @Result(column = "pwd",property = "pwd"),
        @Result(column = "address",property = "address"),
        @Result(column = "status",property = "status"),
        @Result(column = "register_time",property = "register_time"),
        @Result(column = "login_ip",property = "login_ip"),
})
List<User> findalluser() ;








}
